import request from '@/utils/request'

export function getList(data) {
  //协议表
  return request({
    url: '/adminapi/stararticle/list',
    method: 'post',
    data,
  })
}
export function getwoList(data) {
  //公告表
  return request({
    url: '/adminapi/stararticle/announcementlist',
    method: 'post',
    data,
  })
}

export function doAdd(data) {
  //公告添加
  return request({
    url: '/adminapi/stararticle/add',
    method: 'post',
    data,
  })
}
export function doEdit(data) {
  //公告添加
  return request({
    url: '/adminapi/stararticle/update',
    method: 'post',
    data,
  })
}

export function dodelete(params) {
  //公告删除
  return request({
    url: '/adminapi/stararticle/delete',
    method: 'get',
    params,
  })
}
